<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="./inc/TagLibs.jsp"%>
<script language="javascript">
	function opTab(){
		if(document.getElementById("scrollDiv").style.display=="none"){
			document.getElementById("leftMenuDiv").style.width="220px";
			document.getElementById("scrollDiv").style.display="block";
			document.getElementById("arrtxt").innerText="隐藏菜单";
		}else{
			document.getElementById("leftMenuDiv").style.width="30px";
			document.getElementById("scrollDiv").style.display="none";
			document.getElementById("arrtxt").innerText="显示菜单";
		}
	}
	function doTreeNodeClick(url){
		document.getElementById("MainFrame").src=url;
	}
</script>
<div id="leftMenuDiv" style="position:absolute;top:68px;left:0px;width:30px;height:520px;z-index:20;">
	<div class="nav" id="scrollDiv" style="display:none;height:520px;overflow:auto;padding-top:4px;border-top:2px solid #3282c5;border-bottom:2px solid #3282c5;">
  	<h3 class="title">系统菜单</h3>
  	<div class="nav-link">
  	 <div >
    	<script language="javascript">
			<!--
			var d = new dTree('d','/images/dtree');
			
			d.config.useCookies=false;
			d.config.useLines=true;
			d.config.useIcons=true;
			
			d.add(0,-1,'Root');
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';NO_COMM;')==-1}">
				d.add(1,0,'沟通',"javascript:doTreeNodeClick('Desktop.ihtm?type=MSG');",'','','',false);
				d.add(101,1,'我的日程',"javascript:showWin(1024,600,'/base/EstablishmentCommunicateSearchResult.ihtm');",'','','',false);
				d.add(102,1,'新日程',"javascript:doCommNew();",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COMM_SELF;')==-1}">d.add(103,1,'下级日程',"javascript:showWin(1024,600,'/base/EstCommUnderList.ihtm');",'','','',false);</c:if>
				d.add(104,1,'日历',"javascript:showWin(900,600,'/base/EstablishmentCommunicateCalendar.ihtm',true);",'','','',false);
				d.add(105,1,'所有公告',"javascript:showWin(1024,600,'/bbs/Main.ihtm');",'','','',false);
				d.add(106,1,'发内部消息',"javascript:showWin(1024,600,'/message/Main.ihtm?default_url=MessageNew.ihtm');",'','','',false);
				d.add(107,1,'收件箱',"javascript:showWin(1024,600,'/message/Main.ihtm?default_url=MessageList.ihtm?type=IN');",'','','',false);
				d.add(108,1,'发件箱',"javascript:showWin(1024,600,'/message/Main.ihtm?default_url=MessageList.ihtm?type=OUT');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SMS_SEND_SIMP;')!=-1}">
					d.add(109,1,'发短信',"javascript:showWin(900,500,'/sms/SmsSendForm.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SMS_SEND;')!=-1}">
					d.add(110,1,'群发短信',"javascript:showWin(900,500,'/sms/SmsSendForm.ihtm?type=MULTI');",'','','',false);
				</c:if>
				d.add(111,1,'短信发送记录',"javascript:showWin(900,500,'/sms/SmsMyHistoryList.ihtm');",'','','',false);
				d.add(112,1,'我的通讯录',"javascript:showWin(760,400,'/base/PhoneBookList.ihtm');",'','','',false);
				d.add(113,1,'公司内部通讯录',"javascript:showWin(1024,640,'/base/InnerPbMain.ihtm');",'','','',false);
				d.add(114,1,'谁在线',"javascript:showWin(500,300,'/system/OnlineList.ihtm');",'','','',false);
				d.add(115,1,'关于管理易',"javascript:showWin(500,320,'/AboutEking.ihtm');",'','','',false);
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI;')!=-1}">
				d.add(2,0,'客户业务',"javascript:doTreeNodeClick('Desktop.ihtm?type=FLOW');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_CLIE;')!=-1}">
					d.add(201,2,'新客户登记',"javascript:showClientDialog();",'','','',false);
				</c:if>
				
				d.add(202,2,'我的客户',"javascript:showWin(1024,600,'/base/EstablishmentManageList.ihtm?type=CLIENT');",'','','',false);
				
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_MOVE;')!=-1}">
					d.add(203,2,'客户移交',"javascript:showEstMoveDialog('CLIENT');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_CLIE;')!=-1}">
					d.add(204,2,'全部客户',"javascript:showWin(1024,600,'/base/EstablishmentList.ihtm?type=CLIENT');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_BILL;')!=-1}">
					d.add(205,2,'业务接单',"javascript:showBusinessBillDialog();",'','','',false);
					d.add(206,2,'传图下单',"javascript:showBusinessFileDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_COPY;')!=-1}">
					d.add(207,2,'复制开单',"javascript:showBusinessBillReorderDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_BILL_SEAR;')!=-1}">
					d.add(208,2,'业务单一览表',"javascript:showWin(1280,800,'/business/BusinessBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_ACCE;')!=-1}">
					d.add(209,2,'上传设计文件',"javascript:showWin(900,600,'/business/BusinessBillListForAccessory.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ACCE_SEAR;')!=-1}">
					d.add(210,2,'上传文件一览表',"javascript:showWin(1024,600,'/business/AcceSear.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_ITEM_SEAR;')!=-1}">
					d.add(211,2,'业务明细一览表',"javascript:showWin(1024,600,'/business/BusinessBillItemSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_MODI;')!=-1}">
					d.add(212,2,'业务改单',"javascript:showWin(900,600,'/business/BusinessBillListForModify.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_EDIT_PRIC;')!=-1}">
					d.add(213,2,'业务单改价格',"javascript:showWin(900,600,'/business/BusinessBillListForEditPrice.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_MODI_SELF;')!=-1}">
					d.add(214,2,'开单人改单',"javascript:showWin(900,600,'/business/BusinessBillListForModifySelf.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_PRIC;')!=-1}">
					d.add(215,2,'项目价格',"javascript:showWin(1024,600,'/base/EstPriceList.ihtm?price_type=STA&est_type=CLIENT');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_EXAM;')!=-1}">
					d.add(216,2,'业务单审核',"javascript:showWin(900,600,'/business/BusinessBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_UN_EXAM;')!=-1}">
					d.add(217,2,'业务单反审核',"javascript:showWin(900,600,'/business/BusinessBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_BILL_SEAR;')!=-1}">
					d.add(218,2,'扫条码查进度',"javascript:showWin(1024,600,'/business/BusinessRelBillList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DELI_BILL;')!=-1}">
					d.add(219,2,'送货',"javascript:showWin(1024,600,'/business/BusinessBillListForDeliver.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DELI_EXAM;')!=-1}">
					d.add(220,2,'送货单审核',"javascript:showWin(1024,600,'/business/DeliverBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DELI_UN_EXAM;')!=-1}">
					d.add(221,2,'送货单反审核',"javascript:showWin(1024,600,'/business/DeliverBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DELI_BILL_SEAR;')!=-1}">
					d.add(222,2,'送货单一览表',"javascript:showWin(1024,600,'/business/DeliverBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DELI_ITEM_SEAR;')!=-1}">
					d.add(223,2,'送货明细一览表',"javascript:showWin(1024,600,'/business/DeliverBillItemSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SETU_BILL;')!=-1}">
					d.add(224,2,'安装',"javascript:showWin(1024,600,'/business/BusinessBillListForSetu.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SETU_EXAM;')!=-1}">
					d.add(225,2,'安装单审核',"javascript:showWin(1024,600,'/business/SetuBillListForExam.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SETU_UN_EXAM;')!=-1}">
					d.add(226,2,'安装单反审核',"javascript:showWin(1024,600,'/business/SetuBillListForUnExam.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SETU_BILL_SEAR;')!=-1}">
					d.add(227,2,'安装单一览表',"javascript:showWin(1024,600,'/business/SetuBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SETU_COMP;')!=-1}">
					d.add(228,2,'安装单完工',"javascript:showWin(1024,600,'/business/SetuBillListForComp.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SETU_UN_Comp;')!=-1}">
					d.add(229,2,'安装单反完工',"javascript:showWin(1024,600,'/business/SetuBillListForUnComp.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_ACCO;')!=-1}">
					d.add(230,2,'业务对帐',"javascript:showBusAccountDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_CLOS;')!=-1}">
					d.add(231,2,'业务单结清',"javascript:showWin(1024,600,'/business/BusinessBillListForClose.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_UN_CLOS;')!=-1}">
					d.add(232,2,'业务单反结清',"javascript:showWin(1024,600,'/business/BusinessBillListForUnClose.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DELI_ACCO;')!=-1}">
					d.add(233,2,'送货对帐',"javascript:showDelAccountDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_CANC;')!=-1}">
					d.add(234,2,'业务单作废',"javascript:showWin(900,600,'/business/BusinessBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DELI_CANC;')!=-1}">
					d.add(235,2,'送货单作废',"javascript:showWin(1024,600,'/business/DeliverBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SETU_CANC;')!=-1}">
					d.add(236,2,'安装单作废',"javascript:showWin(1024,600,'/business/SetuBillListForCanc.ihtm');",'','','',false);
				</c:if>
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';MAKE;')!=-1}">
				d.add(3,0,'制作',"javascript:doTreeNodeClick('/make/Main.ihtm');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_MAKE;')!=-1}">
					d.add(301,3,'要制作的业务单',"javascript:showWin(1024,600,'/make/BusinessBillListForMake.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_TASK;')!=-1}">
					d.add(302,3,'生产进度管理',"javascript:showWin(1024,600,'/make/BusinessBillListForTask.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUTP_NEW;')!=-1}">
					d.add(303,3,'产量登记',"javascript:showWin(1024,600,'/make/BusinessBillListForOutput.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUTP_SEAR;')!=-1}">
					d.add(304,3,'产量一览表',"javascript:showWin(1024,600,'/make/OutputSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUTP_COUN;')!=-1}">
					d.add(305,3,'产量统计表',"javascript:showWin(900,600,'/make/OutputCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_COMP;')!=-1}">
					d.add(306,3,'业务单完工',"javascript:showWin(1024,600,'/business/BusinessBillListForComplete.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_UN_COMP;')!=-1}">
					d.add(307,3,'业务单反完工',"javascript:showWin(900,600,'/business/BusinessBillListForUnComplete.ihtm');",'','','',false);
				</c:if>
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP;')!=-1}">
				d.add(4,0,'外协',"javascript:doTreeNodeClick('/cooper/Main.ihtm');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_COOP;')!=-1}">
					d.add(401,4,'外协商登记',"javascript:showCooperatorDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_MOVE;')!=-1}">
					d.add(402,4,'外协商移交',"javascript:showEstMoveDialog('COOPERATOR');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_COOP;')!=-1}">
					d.add(403,4,'全部外协商',"javascript:showWin(1024,600,'/base/EstablishmentList.ihtm?type=COOPERATOR');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_COOP;')!=-1}">
					d.add(404,4,'要外协的业务单',"javascript:showWin(1024,600,'/cooper/BusinessBillListForCooper.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_BILL_SEAR;')!=-1}">
					d.add(405,4,'外协单一览表',"javascript:showWin(1280,600,'/cooper/CooperBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_BILL;')!=-1}">
					d.add(406,4,'外协开单',"javascript:showCooperBillDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_ITEM_SEAR;')!=-1}">
					d.add(407,4,'外协明细一览表',"javascript:showWin(1024,600,'/cooper/CooperBillItemSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_EDIT_PRIC;')!=-1}">
					d.add(408,4,'外协单改价格',"javascript:showWin(900,600,'/cooper/CooperBillListForEditPrice.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_MODI;')!=-1}">
					d.add(409,4,'外协改单',"javascript:showWin(900,600,'/cooper/CooperBillListForModify.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_PRIC;')!=-1}">
					d.add(410,4,'外协价格',"javascript:showWin(1024,600,'/base/EstPriceList.ihtm?price_type=STA&est_type=COOPERATOR');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_EXAM;')!=-1}">
					d.add(411,4,'外协单审核',"javascript:showWin(900,600,'/cooper/CooperBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_UN_EXAM;')!=-1}">
					d.add(412,4,'外协单反审核',"javascript:showWin(900,600,'/cooper/CooperBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';GATH_BILL;')!=-1}">
					d.add(413,4,'外协收货',"javascript:showWin(900,600,'/cooper/CooperBillListForGather.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';GATH_EXAM;')!=-1}">
					d.add(414,4,'收货单审核',"javascript:showWin(900,600,'/cooper/GatherBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';GATH_UN_EXAM;')!=-1}">
					d.add(415,4,'收货单反审核',"javascript:showWin(900,600,'/cooper/GatherBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';GATH_BILL_SEAR;')!=-1}">
					d.add(416,4,'收货单一览表',"javascript:showWin(900,600,'/cooper/GatherBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_COMP;')!=-1}">
					d.add(417,4,'外协完工',"javascript:showWin(1024,600,'/cooper/BusinessBillListForCooComp.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_UN_COMP;')!=-1}">
					d.add(418,4,'外协反完工',"javascript:showWin(900,600,'/cooper/BusinessBillListForCooUnComp.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_ACCO;')!=-1}">
					d.add(419,4,'外协对账',"javascript:showCooAccountDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';GATH_ACCO;')!=-1}">
					d.add(420,4,'收货对账',"javascript:showGatAccountDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_CANC;')!=-1}">
					d.add(421,4,'外协单作废',"javascript:showWin(900,600,'/cooper/CooperBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';GATH_CANC;')!=-1}">
					d.add(422,4,'收货单作废',"javascript:showWin(900,600,'/cooper/GatherBillListForCancel.ihtm');",'','','',false);
				</c:if>
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC;')!=-1}">
				d.add(5,0,'采购',"javascript:doTreeNodeClick('/purchase/Main.ihtm');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_PROV;')!=-1}">
					d.add(501,5,'供应商登记',"javascript:showProviderDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PROV_MOVE;')!=-1}">
					d.add(502,5,'供应商移交',"javascript:showEstMoveDialog('PROVIDER');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_PROV;')!=-1}">
					d.add(503,5,'全部供应商',"javascript:showWin(1024,600,'/base/EstablishmentList.ihtm?type=PROVIDER');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BUY;')!=-1}">
					d.add(504,5,'采购单',"javascript:showWin(1024,600,'/purchase/PurchaseBillNew.ihtm?type=BUY&alert_type=FORM');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BUY_EXAM;')!=-1}">
					d.add(505,5,'采购单审核',"javascript:showWin(900,600,'/purchase/PurchaseBillListForExamine.ihtm?type=BUY');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BUY_UN_EXAM;')!=-1}">
					d.add(506,5,'采购单反审核',"javascript:showWin(900,600,'/purchase/PurchaseBillListForUnExamine.ihtm?type=BUY');",'','','',false);
				</c:if>
				
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BUY_SEAR;')!=-1}">
					d.add(508,5,'采购单一览表',"javascript:showWin(1024,600,'/purchase/PurchaseBillSearchResult.ihtm?type=BUY');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BACK;')!=-1}">
					d.add(509,5,'退货单',"javascript:showWin(1024,600,'/purchase/PurchaseBillNew.ihtm?type=BACK&alert_type=FORM');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BACK_EXAM;')!=-1}">
					d.add(510,5,'退货单审核',"javascript:showWin(900,600,'/purchase/PurchaseBillListForExamine.ihtm?type=BACK');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BACK_UN_EXAM;')!=-1}">
					d.add(511,5,'退货单反审核',"javascript:showWin(900,600,'/purchase/PurchaseBillListForUnExamine.ihtm?type=BACK');",'','','',false);
				</c:if>
				
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BACK_SEAR;')!=-1}">
					d.add(514,5,'退货单一览表',"javascript:showWin(1024,600,'/purchase/PurchaseBillSearchResult.ihtm?type=BACK');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_ACCO;')!=-1}">
					d.add(515,5,'采购对账',"javascript:showPurAccountDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_DETA;')!=-1}">
					d.add(515,5,'采购明细表',"javascript:showWin(1024,600,'/purchase/PurchaseDetailSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_COUN;')!=-1}">
					d.add(517,5,'采购汇总表',"javascript:showWin(1024,600,'/purchase/PurchaseCountSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BUY_CANC;')!=-1}">
					d.add(518,5,'采购单作废',"javascript:showWin(900,600,'/purchase/PurchaseBillListForCancel.ihtm?type=BUY');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BACK_CANC;')!=-1}">
					d.add(519,5,'退货单作废',"javascript:showWin(900,600,'/purchase/PurchaseBillListForCancel.ihtm?type=BACK');",'','','',false);
				</c:if>
			</c:if>
				
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';STOR;')!=-1}">
				d.add(6,0,'库存',"javascript:doTreeNodeClick('/storehouse/Main.ihtm');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';IN_BILL;')!=-1}">
					d.add(601,6,'入库单',"javascript:showWin(1024,600,'/storehouse/InBillNew.ihtm?alert_type=FORM');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';IN_EXAM;')!=-1}">
					d.add(602,6,'入库单审核',"javascript:showWin(900,600,'/storehouse/InBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';IN_UN_EXAM;')!=-1}">
					d.add(603,6,'入库单反审核',"javascript:showWin(900,600,'/storehouse/InBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${enterpriseInfo.purcStoc=='N'}">
					<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BUY_STOC;')!=-1}">
						d.add(604,6,'采购单入库',"javascript:showWin(900,600,'/purchase/PurchaseBillListForStoc.ihtm?type=BUY');",'','','',false);
					</c:if>
					<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BUY_UN_STOC;')!=-1}">
						d.add(605,6,'采购单取消入库',"javascript:showWin(900,600,'/purchase/PurchaseBillListForUnStoc.ihtm?type=BUY');",'','','',false);
					</c:if>
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';IN_BILL_SEAR;')!=-1}">
					d.add(606,6,'入库单一览表',"javascript:showWin(1024,600,'/storehouse/InBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUT_BILL;')!=-1}">
					d.add(607,6,'出库单',"javascript:showWin(1024,600,'/storehouse/OutBillNew.ihtm?alert_type=FORM');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUT_EXAM;')!=-1}">
					d.add(608,6,'出库单审核',"javascript:showWin(900,600,'/storehouse/OutBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUT_UN_EXAM;')!=-1}">
					d.add(609,6,'出库单反审核',"javascript:showWin(900,600,'/storehouse/OutBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${enterpriseInfo.purcStoc=='N'}">
					<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BACK_STOC;')!=-1}">
						d.add(610,6,'退货单出库',"javascript:showWin(900,600,'/purchase/PurchaseBillListForStoc.ihtm?type=BACK');",'','','',false);
					</c:if>
					<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_BACK_UN_STOC;')!=-1}">
						d.add(611,6,'退货单取消出库',"javascript:showWin(900,600,'/purchase/PurchaseBillListForUnStoc.ihtm?type=BACK');",'','','',false);
					</c:if>
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUT_BILL_SEAR;')!=-1}">
					d.add(612,6,'出库单一览表',"javascript:showWin(1024,600,'/storehouse/OutBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ALLO_BILL;')!=-1}">
					d.add(613,6,'调拨单',"javascript:showWin(1024,600,'/storehouse/AlloBillNew.ihtm?alert_type=FORM');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ALLO_EXAM;')!=-1}">
					d.add(614,6,'调拨单审核',"javascript:showWin(900,600,'/storehouse/AlloBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ALLO_UN_EXAM;')!=-1}">
					d.add(615,6,'调拨单反审核',"javascript:showWin(900,600,'/storehouse/AlloBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ALLO_BILL_SEAR;')!=-1}">
					d.add(616,6,'调拨单一览表',"javascript:showWin(900,600,'/storehouse/AlloBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';STOC_SEAR;')!=-1}">
					d.add(617,6,'库存查询',"javascript:showWin(900,600,'/storehouse/StockSearch.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';STOC_DETA;')!=-1}">
					d.add(618,6,'收发存明细表',"javascript:showWin(1024,600,'/storehouse/InOutList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';STOC_COUN;')!=-1}">
					d.add(619,6,'收发存汇总表',"javascript:showWin(1024,600,'/storehouse/InOutCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';IN_CANC;')!=-1}">
					d.add(620,6,'入库单作废',"javascript:showWin(900,600,'/storehouse/InBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUT_CANC;')!=-1}">
					d.add(621,6,'出库单作废',"javascript:showWin(900,600,'/storehouse/OutBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ALLO_CANC;')!=-1}">
					d.add(622,6,'调拨单作废',"javascript:showWin(900,600,'/storehouse/AlloBillListForCancel.ihtm');",'','','',false);
				</c:if>
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';FINA;')!=-1}">
				d.add(7,0,'帐务',"javascript:doTreeNodeClick('/finance/Main.ihtm');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';RECE_BILL;')!=-1}">
					d.add(701,7,'收款单',"javascript:showWin(1024,600,'/finance/ReceiveBillNew.ihtm?alert_type=SHOW');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';RECE_EXAM;')!=-1}">
					d.add(702,7,'收款单审核',"javascript:showWin(900,600,'/finance/ReceiveBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';RECE_UN_EXAM;')!=-1}">
					d.add(703,7,'收款单反审核',"javascript:showWin(900,600,'/finance/ReceiveBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';RECE_BILL_SEAR;')!=-1}">
					d.add(704,7,'收款单一览表',"javascript:showWin(1024,600,'/finance/ReceiveBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';INCO_BILL;')!=-1}">
					d.add(705,7,'其他收入单',"javascript:showWin(1024,420,'/finance/IncomeBillNew.ihtm?alert_type=SHOW');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';INCO_EXAM;')!=-1}">
					d.add(706,7,'其他收入审核',"javascript:showWin(900,600,'/finance/IncomeBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';INCO_UN_EXAM;')!=-1}">
					d.add(707,7,'其他收入反审核',"javascript:showWin(900,600,'/finance/IncomeBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';INCO_BILL_SEAR;')!=-1}">
					d.add(708,7,'其他收入一览表',"javascript:showWin(1024,600,'/finance/IncomeBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PAY_BILL;')!=-1}">
					d.add(709,7,'付款单',"javascript:showPayBillDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PAY_EXAM;')!=-1}">
					d.add(710,7,'付款单审核',"javascript:showWin(900,600,'/finance/PayBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PAY_UN_EXAM;')!=-1}">
					d.add(711,7,'付款单反审核',"javascript:showWin(900,600,'/finance/PayBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PAY_BILL_SEAR;')!=-1}">
					d.add(712,7,'付款单一览表',"javascript:showWin(1024,600,'/finance/PayBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';FEE_BILL;')!=-1}">
					d.add(713,7,'费用单',"javascript:showWin(1024,420,'/finance/FeeBillNew.ihtm?alert_type=SHOW');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';FEE_EXAM;')!=-1}">
					d.add(714,7,'费用单审核',"javascript:showWin(900,600,'/finance/FeeBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';FEE_UN_EXAM;')!=-1}">
					d.add(715,7,'费用单反审核',"javascript:showWin(900,600,'/finance/FeeBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';FEE_BILL_SEAR;')!=-1}">
					d.add(716,7,'费用单一览表',"javascript:showWin(1024,600,'/finance/FeeBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';FEE_ITEM_SEAR;')!=-1}">
					d.add(717,7,'费用明细一览表',"javascript:showWin(1024,600,'/finance/FeeBillItemSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ADJU_BILL;')!=-1}">
					d.add(718,7,'调账单',"javascript:showAdjustBillDialog();",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ADJU_EXAM;')!=-1}">
					d.add(719,7,'调账单审核',"javascript:showWin(900,600,'/finance/AdjustBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ADJU_UN_EXAM;')!=-1}">
					d.add(720,7,'调账单反审核',"javascript:showWin(900,600,'/finance/AdjustBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ADJU_BILL_SEAR;')!=-1}">
					d.add(721,7,'调账单一览表',"javascript:showWin(900,600,'/finance/AdjustBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';TRAN_BILL;')!=-1}">
					d.add(722,7,'转账取款单',"javascript:showWin(1024,420,'/finance/TransferBillNew.ihtm?alert_type=SHOW');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';TRAN_EXAM;')!=-1}">
					d.add(723,7,'转账取款审核',"javascript:showWin(900,600,'/finance/TransferBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';TRAN_UN_EXAM;')!=-1}">
					d.add(724,7,'转账取款反审核',"javascript:showWin(900,600,'/finance/TransferBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';TRAN_BILL_SEAR;')!=-1}">
					d.add(725,7,'转账取款一览表',"javascript:showWin(1024,600,'/finance/TransferBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_IN;')!=-1}">
					d.add(726,7,'资金借入单',"javascript:showWin(1024,420,'/finance/LoanBillNew.ihtm?alert_type=SHOW&bill_type=IN');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_IN_EXAM;')!=-1}">
					d.add(727,7,'资金借入审核',"javascript:showWin(900,600,'/finance/LoanBillListForExamine.ihtm?type=IN');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_IN_UN_EXAM;')!=-1}">
					d.add(728,7,'资金借入反审核',"javascript:showWin(900,600,'/finance/LoanBillListForUnExamine.ihtm?type=IN');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_IN_SEAR;')!=-1}">
					d.add(729,7,'资金借入一览表',"javascript:showWin(1024,600,'/finance/LoanBillSearchResult.ihtm?type=IN');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_OUT;')!=-1}">
					d.add(730,7,'资金借出单',"javascript:showWin(1024,420,'/finance/LoanBillNew.ihtm?alert_type=SHOW&bill_type=OUT');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_OUT_EXAM;')!=-1}">
					d.add(731,7,'资金借出审核',"javascript:showWin(900,600,'/finance/LoanBillListForExamine.ihtm?type=OUT');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_OUT_UN_EXAM;')!=-1}">
					d.add(732,7,'资金借出反审核',"javascript:showWin(900,600,'/finance/LoanBillListForUnExamine.ihtm?type=OUT');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_OUT_SEAR;')!=-1}">
					d.add(733,7,'资金借出一览表',"javascript:showWin(1024,600,'/finance/LoanBillSearchResult.ihtm?type=OUT');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';RECE_CANC;')!=-1}">
					d.add(734,7,'收款单作废',"javascript:showWin(900,600,'/finance/ReceiveBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';INCO_CANC;')!=-1}">
					d.add(735,7,'其他收入作废',"javascript:showWin(900,600,'/finance/IncomeBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PAY_CANC;')!=-1}">
					d.add(736,7,'付款单作废',"javascript:showWin(900,600,'/finance/PayBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';FEE_CANC;')!=-1}">
					d.add(737,7,'费用单作废',"javascript:showWin(900,600,'/finance/FeeBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ADJU_CANC;')!=-1}">
					d.add(738,7,'调账单作废',"javascript:showWin(900,600,'/finance/AdjustBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';TRAN_CANC;')!=-1}">
					d.add(739,7,'转账取款作废',"javascript:showWin(900,600,'/finance/TransferBillListForCancel.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_IN_CANC;')!=-1}">
					d.add(740,7,'资金借入作废',"javascript:showWin(900,600,'/finance/LoanBillListForCancel.ihtm?type=IN');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_OUT_CANC;')!=-1}">
					d.add(741,7,'资金借出作废',"javascript:showWin(900,600,'/finance/LoanBillListForCancel.ihtm?type=OUT');",'','','',false);
				</c:if>
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUTP;')!=-1}">
				d.add(8,0,'产值',"",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_BUSI;')!=-1}">
					d.add(801,8,'接单产值明细表',"javascript:showWin(900,600,'/make/OvBusinessList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_FOLL;')!=-1}">
					d.add(802,8,'跟单产值明细表',"javascript:showWin(900,600,'/make/OvFollowList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_COUN;')!=-1}">
					d.add(803,8,'产值统计表',"javascript:showWin(1024,600,'/make/OvCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_DESI;')!=-1}">
					d.add(804,8,'设计产值明细表',"javascript:showWin(900,600,'/make/OvDesignList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_MAKE;')!=-1}">
					d.add(805,8,'制作产值明细表',"javascript:showWin(1024,600,'/make/OvMakeList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_RECE;')!=-1}">
					d.add(806,8,'收欠费产值明细表',"javascript:showWin(900,600,'/make/OvReceiveList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_SETU;')!=-1}">
					d.add(807,8,'安装产值明细表',"javascript:showWin(1024,600,'/make/OvSetuList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_SALE;')!=-1}">
					d.add(808,8,'营销产值明细表',"javascript:showWin(900,600,'/make/OvSaleList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_BILL;')!=-1}">
					d.add(809,8,'产值单',"javascript:showWin(1024,420,'/make/OvBillNew.ihtm?alert_type=SHOW');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_EXAM;')!=-1}">
					d.add(810,8,'产值单审核',"javascript:showWin(900,600,'/make/OvBillListForExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_UN_EXAM;')!=-1}">
					d.add(811,8,'产值单反审核',"javascript:showWin(900,600,'/make/OvBillListForUnExamine.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_BILL_SEAR;')!=-1}">
					d.add(812,8,'产值单一览表',"javascript:showWin(900,600,'/make/OvBillSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_PERC;')!=-1}">
					d.add(813,8,'业务单产值分配规则',"javascript:showWin(500,380,'/make/SetOvPercentForm.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_PERC_SPEC;')!=-1}">
					d.add(814,8,'业务单特殊产值规则',"javascript:showWin(1024,600,'/make/BusinessBillListForOv.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OV_CANC;')!=-1}">
					d.add(815,8,'产值单作废',"javascript:showWin(900,600,'/make/OvBillListForCancel.ihtm');",'','','',false);
				</c:if>
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';REPO;')!=-1}">
				d.add(9,0,'统计报表',"",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_DATE_COUN;')!=-1}">
					d.add(901,9,'销售日报表',"javascript:showWin(900,600,'/finance/BusinessDateCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';MT_BUSI_DATE;')!=-1}">
					d.add(902,9,'项目营业日报表',"javascript:showWin(900,600,'/business/MtBusinessDate.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';MT_BUSI_COUN;')!=-1}">
					d.add(903,9,'项目营业汇总表',"javascript:showWin(900,600,'/business/MtBusinessCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';STAF_EXPL;')!=-1}">
					d.add(904,9,'员工业绩排行表',"javascript:showWin(1024,600,'/finance/StafferExploitList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_BUSI_COUN;')!=-1}">
					d.add(905,9,'客户营业汇总表',"javascript:showWin(1024,600,'/business/EstBusinessCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_PROF;')!=-1}">
					d.add(906,9,'业务单成本表',"javascript:showWin(1024,600,'/business/BusinessProfitSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PROF_SEAR;')!=-1}">
					d.add(907,9,'利润表',"javascript:showWin(900,600,'/finance/ProfitSearch.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PROF_COUN;')!=-1}">
					d.add(908,9,'利润汇总表',"javascript:showWin(900,600,'/finance/ProfitCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_UN_RECE;')!=-1}">
					d.add(909,9,'客户应收款',"javascript:showWin(1024,600,'/business/ReceivableList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_UN_RECE;')!=-1}">
					d.add(910,9,'业务单应收款',"javascript:showWin(1024,600,'/business/BusinessBillListForReceive.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';UN_RECE_COUN;')!=-1}">
					d.add(911,9,'应收汇总表',"javascript:showWin(900,600,'/business/ReceivableCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_UN_RECE_AGE;')!=-1}">
					d.add(912,9,'应收款账龄分布表',"javascript:showWin(1024,600,'/business/ReceivableAgeList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_UN_PAY;')!=-1}">
					d.add(913,9,'采购单应付款',"javascript:showWin(1024,600,'/purchase/PurchaseBillListForPay.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';UN_PAY_SEAR;')!=-1}">
					d.add(914,9,'应付账款',"javascript:showWin(900,600,'/finance/PayableList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';UN_PAY_COUN;')!=-1}">
					d.add(915,9,'应付汇总表',"javascript:showWin(900,600,'/finance/PayableCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_UN_PAY;')!=-1}">
					d.add(916,9,'外协单应付款',"javascript:showWin(1024,600,'/cooper/CooperBillListForPay.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_BACK_SEAR;')!=-1}">
					d.add(917,9,'销售回款一览表',"javascript:showWin(1024,600,'/finance/BackCostList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';RECE_ITEM_SEAR;')!=-1}">
					d.add(918,9,'结欠回款明细表',"javascript:showWin(1024,600,'/finance/ReceiveBillItemSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_BACK_COUN;')!=-1}">
					d.add(919,9,'客户回款汇总表',"javascript:showWin(1024,600,'/finance/EstBackCount.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PURC_PAY_SEAR;')!=-1}">
					d.add(920,9,'采购付款一览表',"javascript:showWin(1024,600,'/finance/PurPayCostList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BANK_COST;')!=-1}">
					d.add(921,9,'现金银行',"javascript:showWin(1024,600,'/finance/AccountBalanceList.ihtm?is_tmp=Y');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_PAY_SEAR;')!=-1}">
					d.add(922,9,'外协付款一览表',"javascript:showWin(1024,600,'/finance/CooPayCostList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_IN_COUN;')!=-1}">
					d.add(923,9,'资金借入统计',"javascript:showWin(700,600,'/finance/LoanBillCount.ihtm?type=IN');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';LOAN_OUT_COUN;')!=-1}">
					d.add(924,9,'资金借出统计',"javascript:showWin(700,600,'/finance/LoanBillCount.ihtm?type=OUT');",'','','',false);
				</c:if>
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE;')!=-1}">
				d.add(10,0,'基础数据',"javascript:doTreeNodeClick('/base/Main.ihtm');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_STAF;')!=-1}">
					d.add(1001,10,'部门与员工',"javascript:showWin(900,640,'/base/StafferMain.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ESTA_TYPE;')!=-1}">
					d.add(1002,10,'单位类别',"javascript:showWin(400,350,'/base/EstablishmentTypeList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ESTA_CLAS;')!=-1}">
					d.add(1003,10,'单位等级',"javascript:showWin(400,350,'/base/EstablishmentLevelList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_AREA;')!=-1}">
					d.add(1004,10,'地区管理',"javascript:showWin(540,350,'/base/AreaList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';MAKE_TYPE;')!=-1}">
					d.add(1005,10,'项目类型',"javascript:showWin(680,500,'/base/MakeTypeList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';MAKE_REQU;')!=-1}">
					d.add(1006,10,'制作要求',"javascript:showWin(600,500,'/base/MakeRequireList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';ACCE_MARK;')!=-1}">
					d.add(1007,10,'文件说明',"javascript:showWin(600,500,'/base/AccessoryMarkList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';WORK_CENT;')!=-1}">
					d.add(1008,10,'工作中心',"javascript:showWin(600,400,'/base/WorkCenterList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PAY_MODE;')!=-1}">
					d.add(1009,10,'付款方式',"javascript:showWin(400,300,'/base/PayModeList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_PROD;')!=-1}">
					d.add(1010,10,'材料',"javascript:showWin(900,640,'/base/ProductMain.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_UNIT;')!=-1}">
					d.add(1011,10,'计量单位',"javascript:showWin(400,300,'/base/UnitList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BASE_STOR;')!=-1}">
					d.add(1012,10,'仓库',"javascript:showWin(600,400,'/base/StorehouseList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';IN_TYPE;')!=-1}">
					d.add(1013,10,'入库类型',"javascript:showWin(600,500,'/base/InTypeList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';OUT_TYPE;')!=-1}">
					d.add(1014,10,'出库类型',"javascript:showWin(600,500,'/base/OutTypeList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BANK_ACCO;')!=-1}">
					d.add(1015,10,'银行账户',"javascript:showWin(900,400,'/base/BankAccountList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';INCO_TYPE;')!=-1}">
					d.add(1016,10,'收入类型',"javascript:showWin(600,400,'/base/IncomeTypeList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';FEE_TYPE;')!=-1}">
					d.add(1017,10,'费用类型',"javascript:showWin(600,400,'/base/FeeTypeList.ihtm');",'','','',false);
				</c:if>
			</c:if>
			
			<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SYST;')!=-1}">
				d.add(11,0,'系统管理',"javascript:doTreeNodeClick('/system/Main.ihtm');",'','','',false);
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SYST_CONF;')!=-1}">
					d.add(1101,11,'系统配置',"javascript:showWin(900,620,'/system/EnterpriseInfoEdit.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SMS_SUBS;')!=-1}">
					d.add(1102,11,'消息提醒设置',"javascript:showWin(520,640,'/sms/SmsSubscribe.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SYST_USER;')!=-1}">
					d.add(1103,11,'用户权限',"javascript:showWin(600,530,'/system/UserList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${showClieUser=='Y' && (currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_USER;')!=-1)}">
					d.add(1104,11,'客户下单帐号',"javascript:showWin(700,530,'/system/ClieUserList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DATA_CODE;')!=-1}">
					d.add(1105,11,'主数据编号规则',"javascript:showWin(900,530,'/system/CodeRuleMain.ihtm?list_type=1');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BILL_CODE;')!=-1}">
					d.add(1106,11,'单据编号与打印说明',"javascript:showWin(900,530,'/system/CodeRuleMain.ihtm?list_type=2');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CANC_LOG;')!=-1}">
					d.add(1107,11,'单据作废历史',"javascript:showWin(900,600,'/system/CancelLogList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';BUSI_LOG;')!=-1}">
					d.add(1108,11,'业务单改单历史',"javascript:showWin(1024,600,'/business/BusinessLogList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_LOG;')!=-1}">
					d.add(1109,11,'客户修改历史',"javascript:showWin(1024,600,'/base/EstablishmentLogSearchResult.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SMS_HIST;')!=-1}">
					d.add(1110,11,'短信消费历史',"javascript:showWin(900,500,'/sms/SmsHistoryList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SYST_LOG;')!=-1}">
					d.add(1111,11,'登录历史',"javascript:showWin(900,500,'/system/SystemLogList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_IMPO;')!=-1}">
					d.add(1112,11,'导入客户',"javascript:doImpo('/base/EstImpoForm.ihtm?type=CLIE','/base/EstImpo.ihtm?type=CLIE');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_IMPO;')!=-1}">
					d.add(1113,11,'导入外协商',"javascript:doImpo('/base/EstImpoForm.ihtm?type=COOP','/base/EstImpo.ihtm?type=COOP');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PROV_IMPO;')!=-1}">
					d.add(1114,11,'导入供应商',"javascript:doImpo('/base/EstImpoForm.ihtm?type=PROV','/base/EstImpo.ihtm?type=PROV');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';STAF_IMPO;')!=-1}">
					d.add(1115,11,'导入员工',"javascript:doImpo('/base/StafImpoForm.ihtm','/base/StafImpo.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PROD_IMPO;')!=-1}">
					d.add(1116,11,'导入材料',"javascript:doImpo('/base/ProductUploadForm.ihtm','/base/ProductImport.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';MT_IMPO;')!=-1}">
					d.add(1117,11,'导入项目类型',"javascript:doImpo('/base/MakeTypeImpoForm.ihtm','/base/MakeTypeImpo.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_PRIC_IMPO;')!=-1}">
					d.add(1118,11,'导入业务项目价格',"javascript:doImpo('/base/EstPricImpoForm.ihtm?type=CLIE','/base/EstPricImpo.ihtm?type=CLIE');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_PRIC_IMPO;')!=-1}">
					d.add(1119,11,'导入外协项目价格',"javascript:doImpo('/base/EstPricImpoForm.ihtm?type=COOP','/base/EstPricImpo.ihtm?type=COOP');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';CLIE_BEGI_IMPO;')!=-1}">
					d.add(1120,11,'导入客户期初欠款',"javascript:doImpo('/base/EstBegiImpoForm.ihtm?type=CLIE','/base/EstBegiImpo.ihtm?type=CLIE');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';COOP_BEGI_IMPO;')!=-1}">
					d.add(1121,11,'导入外协商期初欠款',"javascript:doImpo('/base/EstBegiImpoForm.ihtm?type=COOP','/base/EstBegiImpo.ihtm?type=COOP');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';PROV_BEGI_IMPO;')!=-1}">
					d.add(1122,11,'导入供应商期初欠款',"javascript:doImpo('/base/EstBegiImpoForm.ihtm?type=PROV','/base/EstBegiImpo.ihtm?type=PROV');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';DB_BACK;')!=-1}">
					d.add(1123,11,'数据库备份',"javascript:showWin(900,550,'/system/DbBackupList.ihtm');",'','','',false);
				</c:if>
				<c:if test="${currentUser.user.userType==1 || fn:indexOf(currentUser.privs,';SYST_TS;')!=-1}">
					d.add(1124,11,'帐套管理',"javascript:showWin(400,300,'/system/TallySetList.ihtm');",'','','',false);
				</c:if>
			</c:if>
			
			document.write(d);
			d.closeAll();
			//-->
		</script>
		</div>
		</div>
	</div>
	<div id="arrow" style="position:relative;top:19px;height:110px;width:20px;padding-left:2px;float:left;cursor:pointer;font-family: Arial, '宋体'; font-size: 12px; color:#ffffff;background-color: #18afe7;" onclick="opTab()">
	    <br>
	    <span id="arrtxt" style="writing-mode:lr-tb">显示菜单</span>
	</div>
</div>
